package com.itehima.Buffer;

import java.io.FileWriter;
import java.io.IOException;
import java.nio.charset.Charset;

public class Demo04 {

    public static void main(String[] args) throws IOException {

        //利用转换流按照指定字符编码写出
        FileWriter fw = new FileWriter("20240417\\111.txt", Charset.forName("GBK"));
        fw.write("你好你好");
        fw.close();
    }
}
